package com.xixi.easy.rpc.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: zxh
 * @date: 2024/8/21 11:04
 * @description: RPC响应封装
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class RpcResponse implements Serializable {

	// 响应数据
	private Object data;

	// 响应数据类型
	private Class<?> dataType;

	// 响应信息
	private String message;

	// 异常信息
	private Exception exception;

}
